export default {
  data() {
    return {
      moduleSetting: [
        {
          title: '模块名称：',
          type: 'common',
          tag: 'hide',
          config: [
            {
              name: 'ColorPicker',
              word: 'color',
              label: '字体颜色',
              value: '#333',
              default: '#333'
            },
            {
              name: 'Select',
              word: 'fontSize',
              label: '字体大小',
              value: 20,
              default: 20,
              options: [12, 13, 14, 16, 20, 28, 36, 48, 72],
              unit: 'px'
            },
            {
              name: 'Switch',
              word: 'isHide',
              label: '隐藏标题',
              value: false,
              default: false
            }
          ]
        },
        {
          title: '边框配置：',
          type: 'common',
          config: [
            {
              name: 'ColorPicker',
              word: 'borderColor',
              label: '边框颜色',
              value: '#fff',
              default: '#fff'
            },
            {
              name: 'Select',
              word: 'borderWidth',
              label: '边框大小',
              value: 0,
              default: 0
            }
          ]
        },
        {
          title: '背景配置：',
          type: 'common',
          config: [
            {
              name: 'ColorPicker',
              word: 'backgroundColor',
              label: '背景颜色',
              value: '#fff',
              default: '#fff'
            },
            {
              name: 'upload',
              word: 'backgroundImage',
              label: '设置背景图片',
              value: '',
              typeComp: 'title'
            },
            {
              name: 'radioGroup',
              word: 'size',
              value: 'stretch',
              typeComp: 'title',
              default: 'stretch',
              options: [{
                label: 'stretch',
                name: '拉伸'
              }, {
                label: 'tile',
                name: '平铺'
              }, {
                label: 'center',
                name: '居中'
              }] // 平铺：background-size: 100% 100%;  拉伸：background-size:cover; 居中：background-size:center;
            }
          ]
        },
        {
          title: '标题名称：',
          kind: 'tag', // 概览
          config: [
            {
              name: 'ColorPicker',
              word: 'color',
              label: '字体颜色',
              value: '#333',
              default: '#333'
            },
            {
              name: 'Select',
              word: 'fontSize',
              label: '字体大小',
              value: 20,
              default: 20,
              options: [12, 13, 14, 16, 20, 28, 36, 48, 72],
              unit: 'px'
            }
          ]
        },
        {
          title: '内容文字：',
          kind: 'tag', // 概览
          config: [
            {
              name: 'ColorPicker',
              word: 'color',
              label: '字体颜色',
              value: '#333',
              default: '#000'
            },
            {
              name: 'Select',
              word: 'fontSize',
              label: '字体大小',
              value: 36,
              default: 12,
              options: [12, 13, 14, 16, 20, 28, 36, 48, 72],
              unit: 'px'
            }
          ]
        },
        {
          title: '内容文字：',
          type: 'number', // 数字翻页器
          config: [
            {
              name: 'ColorPicker',
              word: 'color',
              label: '字体颜色',
              value: '#000',
              default: '#000'
            },
            {
              name: 'Select',
              word: 'fontSize',
              label: '字体大小',
              value: 48,
              default: 12,
              options: [12, 13, 14, 16, 20, 28, 36, 48, 72],
              unit: 'px'
            }
          ]
        },
        {
          title: '展示位数：',
          type: 'number',
          kind: 'tag',
          config: [
            {
              name: 'Select',
              word: 'number',
              value: 9,
              default: 1,
              options: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
            }
          ]
        },
        {
          title: '标题文字：',
          type: 'title',
          config: [
            {
              name: 'ColorPicker',
              word: 'color',
              label: '字体颜色',
              value: '#000',
              default: '#000'
            },
            {
              name: 'Select',
              word: 'fontSize',
              label: '字体大小',
              value: 12,
              default: 12,
              options: [12, 13, 14, 16, 20, 28, 36, 48, 72],
              unit: 'px'
            },
            {
              name: 'Switch',
              word: 'isHide',
              label: '隐藏标题',
              value: false,
              default: false
            }
          ]
        }
      ]
    };
  }
};
export const axisConfig = [
  {
    title: '横轴样式：',
    id: 'axisConfig_X',
    useModule: ['chart'],
    config: [
      {
        name: 'Select',
        word: 'rotate',
        width: '100px',
        label: '字体方向',
        value: 0,
        default: 0,
        options: [{ value: 0, label: '横向文字' }, { value: 90, label: '纵向文字' }, { value: 45, label: '45°文字' }]
      },
      {
        name: 'ColorPicker',
        word: 'color',
        label: '字体颜色',
        value: '#606266',
        default: '#606266'
      },
      {
        name: 'number',
        word: 'fontSize',
        label: '字体大小',
        value: 14,
        default: 14,
        options: [12, 13, 14, 16, 20, 28, 36, 48, 72],
        unit: 'px'
      }
    ]
  },
  {
    title: '纵轴样式：',
    id: 'axisConfig_Y',
    useModule: ['chart'],
    config: [
      {
        name: 'Select',
        word: 'rotate',
        width: '100px',
        label: '字体方向',
        value: 0,
        default: 0,
        options: [{ value: 0, label: '横向文字' }, { value: 90, label: '纵向文字' }, { value: 45, label: '45°文字' }]
      },
      {
        name: 'ColorPicker',
        word: 'color',
        label: '字体颜色',
        value: '#606266',
        default: '#606266'
      },
      {
        name: 'number',
        word: 'fontSize',
        label: '字体大小',
        value: 14,
        default: 14,
        options: [12, 13, 14, 16, 20, 28, 36, 48, 72],
        unit: 'px'
      }
    ]
  }
];

